<?php

namespace Modules\Coupon\Entities;

use Illuminate\Database\Eloquent\Model;

class Coupon extends Model
{
    protected $fillable = [];

    protected $casts = [
        'coupon_active_id' => 'integer',
        'user_id' => 'integer',
        'order_id' => 'integer',
    ];

    public function active()
    {
        return $this->belongsTo(CouponActive::class);
    }
}
